add onclick to div element in javascript